package genetic;

import java.util.ArrayList;

import org.jfree.data.xy.XYSeriesCollection;

public class T06_inputData {

	private XYSeriesCollection dataSeries = new XYSeriesCollection();
	private ArrayList<DataSet> dataSets = null;

	public T06_inputData() {
		String var1 = "x1";
		String var2 = "x3";
		
		dataSeries.addSeries(GPApplication.loadFromExcel("ReferenceData.xls", var1));
		dataSeries.addSeries(GPApplication.loadFromExcel("ReferenceData.xls", var2));
		
		dataSets = DataSet.createListFromXYSeriesCollection(dataSeries);

		int i=0;
		for (DataSet ds : dataSets) {
			System.out.print("i = "+i+"    ");
			System.out.print(var1+" = "+ds.get(var1).doubleValue()+"    ");
			System.out.print(var2+" = "+ds.get(var2).doubleValue());
			System.out.println();
			i++;
		}
	}
	
	public static void main(String[] args) {

		new T06_inputData();
	}
}
